// s.d(t, { e: () => o, M: () => n })
import * as THREE from "three"
const i = []
let a = 0
const o = (e, t) => {
  if (0 === i.length)
    for (let e = 0; e < 100; e++) {
      const e = new THREE.Mesh(new THREE.SphereBufferGeometry(0.005), new THREE.MeshBasicMaterial())
      i.push(e)
    }
  return s => {
    const r = i[a++ % i.length]
    r.position.copy(s.point), r.scale.set(s.distance, s.distance, s.distance), r.material.color.setHex(e), r.parent || t.scene.add(r)
  }
}
const n = i
export default {
  e: o,
  M: n
}
